{template "header.html"}

<script>
    {$auto_form_data_ajax}
</script>
{php $isbiao = \Phpcmf\Service::M()->db->tableExists(\Phpcmf\Service::M()->dbprefix('1_'.MOD_DIR.'_shezhi'));}
{if $isbiao}
{php $kaiguan = \Phpcmf\Service::M()->table('1_'.MOD_DIR.'_shezhi')->where('dirname', MOD_DIR)->getRow();}
{/if}
{php $quanzhukaiguan = \Phpcmf\Service::M()->table('1_'.MOD_DIR)->where('uid', $member.id)->where('id', $index.id)->getRow();}
{php $kaiguans = dr_string2array($kaiguan['setting']);}
{php $quanzhukaiguans = dr_string2array($quanzhukaiguan);}
<form action="" class="form-horizontal" method="post" name="myform" id="myform">
    {$form}
    <div class="row myfbody {if $is_verify} fc-verify-post{/if}">
        <div class="{if $is_mobile}col-md-12{else}col-md-9{/if}">

            <div class="portlet light bordered">
				<!--jia-->
				<div>
					<div class="portlet-title">
						<div class="caption">
							<span class="caption-subject font-green sbold ">{dr_lang('基本内容')}圈子ID:{$index.id}</span>
						</div>

						<div class="actions pull-right">
							<div class="btn-group">
								<a class="btn " href="{$reply_url}"> <i class="fa fa-mail-reply"></i> {dr_lang('返回列表')}</a>
							</div>
						</div>
					</div>
				
					<div class="portlet-body">
						
						<div class="form-body">
							
							<div class="form-group">
								<label class="col-md-2 control-label">{dr_lang('关联')}</label>
								<div class="col-md-9" style="padding-top: 7px;">
									<code class="form-control-static"><a href="{$index.url}" target="_blank">{dr_clearhtml($index.title)}</a></code>
								</div>
							</div>
							
							{$myfield}
						</div>
					</div>
            </div>
			 

            {if $diyfield}
            <div class="portlet light bordered">
                <div class="portlet-title">
                    <div class="caption">
                        <span class="caption-subject font-green sbold ">{dr_lang('其他内容')}</span>
                    </div>
                </div>
                <div class="portlet-body">
                    <div class="form-body">
                        {$diyfield}
                    </div>
                </div>
            </div>
			
            {/if}

        </div>
		</div>
        <div class="{if $is_mobile}col-md-12{else}col-md-3{/if}  my-sysfield">
            <div class="portlet light bordered">
                <div class="portlet-body">
                    <div class="form-body ">
                        {$sysfield}
                    </div>
                </div>
            </div>
        </div>
		

    </div>

    <div class="portlet-body form myfooter">
        <div class="form-actions text-center">
            {if $is_verify}
            <script>
                function dr_verify() {
                    if ($("input[name='data[status]']:checked").val() == 0) {
                        layer.confirm('{dr_lang("您需要将它设置为通过状态吗？")}', {
                            icon: 3,
                            shade: 0,
                            title: '{dr_lang("审核提示")}',
                            btn: ['{dr_lang("设为通过")}','{dr_lang("保持现状")}']
                        }, function(){
                            $("input[name='data[status]'][value='1']").prop('checked',true);
                            dr_ajax_submit('{dr_now_url()}', 'myform', '2000', '{$reply_url}');
                        }, function(){
                            dr_ajax_submit('{dr_now_url()}', 'myform', '2000', '{$reply_url}');
                        });
                    } else {
                        dr_ajax_submit('{dr_now_url()}', 'myform', '2000', '{$reply_url}');
                    }

                }
            </script>
            <label><button type="button" onclick="dr_verify()" class="btn green"> <i class="fa fa-save"></i> {dr_lang('提交审核')}</button></label>
            {else}
            <label><button type="button" onclick="dr_ajax_submit('{dr_now_url()}', 'myform', '2000')" class="btn green"> <i class="fa fa-save"></i> {dr_lang('保存内容')}</button></label>
            <label><button type="button" onclick="dr_ajax_submit('{dr_now_url()}', 'myform', '2000', '{$reply_url}')" class="btn yellow"> <i class="fa fa-mail-reply-all"></i> {dr_lang('保存并返回')}</button></label>
            {if $is_form_cache}
            <label><button type="button" onclick="auto_form_data_delete()" class="btn red"> <i class="fa fa-trash"></i> {dr_lang('删除历史缓存')}</button></label>
            {/if}
            {/if}
        </div>
    </div>
</form>


{if $_GET['c']=='son' && $_GET['m'] == 'add' || ($_GET['c']=='son' && $_GET['m'] == 'edit')}
{if $isbiao}
{if $kaiguans['pages']['quantie_fatie'] != '1'}
<div class="guanlizu d-buhuanhang d-quxian-0 d-a-hei">
	{if $kaiguans['pages']['quantie_jiugetu'] == '1'}

	{elseif $member.is_admin || $quanzhukaiguans || $kaiguans['pages']['quantie_jiugetu'] == '4' || $kaiguans['pages']['quantie_jiugetu'] == '5' || $kaiguans['pages']['quantie_jiugetu'] == '0'}
	<a id="d_tupianzu" style="" class="d-kuan-70 d-wenzi-juzhong" onclick="javascript:d_row_tupianzu();">
		<i class="fa fa-picture-o"></i>
		<div >九格图</div>
	</a>
	{/if}
	
	{if $kaiguans['pages']['quantie_mpsan'] == '1'}
	
	{elseif $member.is_admin || $quanzhukaiguans || $kaiguans['pages']['quantie_mpsan'] == '4' || $kaiguans['pages']['quantie_mpsan'] == '5' || $kaiguans['pages']['quantie_mpsan'] == '0'}
	<a id="d_mpsanzu" style="" class="d-kuan-70 d-wenzi-juzhong" onclick="javascript:d_row_mpsanzu();">
		<i class="fa fa-music"></i>
		<div>MP3帖</div>
	</a>
	{/if}
	{if $kaiguans['pages']['quantie_yuyin'] == '1'}
	
	{elseif $member.is_admin || $quanzhukaiguans || $kaiguans['pages']['quantie_yuyin'] == '4' || $kaiguans['pages']['quantie_yuyin'] == '5' || $kaiguans['pages']['quantie_yuyin'] == '0'}
	<a id="d_yuyinzu" style="" class="d-kuan-70 d-wenzi-juzhong" onclick="javascript:d_row_yuyinzu();">
		<i class="fa fa-microphone"></i>
		<div>语音帖</div>
	</a>
	{/if}
	{if $kaiguans['pages']['quantie_shipin'] == '1'}
	
	{elseif $member.is_admin || $quanzhukaiguans || $kaiguans['pages']['quantie_shipin'] == '4' || $kaiguans['pages']['quantie_shipin'] == '5' || $kaiguans['pages']['quantie_shipin'] == '0'}
	<a id="d_shipinzu" style="" class="d-kuan-70 d-wenzi-juzhong" onclick="javascript:d_row_shipinzu();">
		<i class="fa fa-video-camera"></i>
		<div>视频帖</div>
	</a>
	{/if}
	{if $kaiguans['pages']['quantie_toupiao'] == '1'}
	
	{elseif $member.is_admin || $quanzhukaiguans || $kaiguans['pages']['quantie_toupiao'] == '4' || $kaiguans['pages']['quantie_toupiao'] == '5' || $kaiguans['pages']['quantie_toupiao'] == '0'}
	<a id="d_toupiaozu" style="" class="d-kuan-70 d-wenzi-juzhong" onclick="javascript:d_row_toupiaozu();">
		<i class="fa fa-tag"></i>
		<div>投票帖</div>
	</a>
	{/if}
	{if $kaiguans['pages']['quantie_fufei'] == '1'}
	
	{elseif $member.is_admin || $quanzhukaiguans || $kaiguans['pages']['quantie_fufei'] == '4' || $kaiguans['pages']['quantie_fufei'] == '5' || $kaiguans['pages']['quantie_fufei'] == '0'}
	<a id="d_fufeizu" style="" class="d-kuan-70 d-wenzi-juzhong" onclick="javascript:d_row_fufeizu();">
		<i class="fa fa-database"></i>
		<div>付费帖</div>
	</a>
	{/if}
	
	{if $kaiguans['pages']['quantie_wenda'] == '1'}
	
	{elseif $member.is_admin || $quanzhukaiguans || $kaiguans['pages']['quantie_wenda'] == '4' || $kaiguans['pages']['quantie_wenda'] == '5' || $kaiguans['pages']['quantie_wenda'] == '0'}
	<a id="d_wendazu" style="" class="d-kuan-70 d-wenzi-juzhong" onclick="javascript:d_row_wendazu();">
		<i class="fa fa-commenting-o"></i>
		<div >问答帖</div>
	</a>
	{/if}
	{if $kaiguans['pages']['quantie_shangpin'] == '1'}
	
	{elseif $member.is_admin || $quanzhukaiguans || $kaiguans['pages']['quantie_shangpin'] == '4' || $kaiguans['pages']['quantie_shangpin'] == '5' || $kaiguans['pages']['quantie_shangpin'] == '0'}
	<a id="d_shangpinzu" style="" class="d-kuan-70 d-wenzi-juzhong" onclick="javascript:d_row_shangpinzu();">
		<i class="bi bi-bag-check"></i>
		<div >商品帖</div>
	</a>
	{/if}
	{if $kaiguans['pages']['quantie_bisai'] == '1'}
	
	{elseif $member.is_admin || $quanzhukaiguans || $kaiguans['pages']['quantie_bisai'] == '4' || $kaiguans['pages']['quantie_bisai'] == '5' || $kaiguans['pages']['quantie_bisai'] == '0'}
	
	<a id="d_bisaizu" style="" class="d-kuan-70 d-wenzi-juzhong" onclick="javascript:d_row_bisaizu();">
		<i class="fa fa-trophy"></i>
		<div >比赛帖</div>
	</a>
	{/if}
	{if $kaiguans['pages']['quantie_xiazai'] == '1'}
	
	{elseif $member.is_admin || $quanzhukaiguans || $kaiguans['pages']['quantie_xiazai'] == '4' || $kaiguans['pages']['quantie_xiazai'] == '5' || $kaiguans['pages']['quantie_xiazai'] == '0'}
	
	<a id="d_xiazaizu" style="" class="d-kuan-70 d-wenzi-juzhong" onclick="javascript:d_row_xiazaizu();">
		<i class="fa fa-cloud-download"></i>
		<div >下载帖</div>
	</a>
	{/if}
	{if $kaiguans['pages']['quantie_pk'] == '1'}
	
	{elseif $member.is_admin || $quanzhukaiguans || $kaiguans['pages']['quantie_pk'] == '4' || $kaiguans['pages']['quantie_pk'] == '5' || $kaiguans['pages']['quantie_pk'] == '0'}
	
	<a id="d_pkzu" style="" class="d-kuan-70 d-wenzi-juzhong" onclick="javascript:d_row_pkzu();">
		<i class="fa fa-balance-scale"></i>
		<div>PK帖</div>
	</a>
	{/if}
	{if $kaiguans['pages']['quantie_huodong'] == '1'}
	
	{elseif $member.is_admin || $quanzhukaiguans || $kaiguans['pages']['quantie_huodong'] == '4' || $kaiguans['pages']['quantie_huodong'] == '5' || $kaiguans['pages']['quantie_huodong'] == '0'}
	
	<a id="d_huodongzu" style="" class="d-kuan-70 d-wenzi-juzhong" onclick="javascript:d_row_huodongzu();">
		<i class="fa fa-dashboard"></i>
		<div>活动帖</div>
	</a>
	{/if}
	{if $kaiguans['pages']['quantie_chuzu'] == '1'}
	
	{elseif $member.is_admin || $quanzhukaiguans || $kaiguans['pages']['quantie_chuzu'] == '4' || $kaiguans['pages']['quantie_chuzu'] == '5' || $kaiguans['pages']['quantie_chuzu'] == '0'}
	
	<a id="d_chuzuzu" style="" class="d-kuan-70 d-wenzi-juzhong" onclick="javascript:d_row_chuzuzu();">
		<i class="fa fa-university"></i>
		<div>出租帖</div>
	</a>
	{/if}
	{if $kaiguans['pages']['quantie_qiuzu'] == '1'}
	
	{elseif $member.is_admin || $quanzhukaiguans || $kaiguans['pages']['quantie_qiuzu'] == '4' || $kaiguans['pages']['quantie_qiuzu'] == '5' || $kaiguans['pages']['quantie_qiuzu'] == '0'}
	
	<a id="d_qiuzuzu" style="" class="d-kuan-70 d-wenzi-juzhong" onclick="javascript:d_row_qiuzuzu();">
		<i class="fa fa-flag"></i>
		<div>求租帖</div>
	</a>
	{/if}
	{if $kaiguans['pages']['quantie_zhaopin'] == '1'}
	
	{elseif $member.is_admin || $quanzhukaiguans || $kaiguans['pages']['quantie_zhaopin'] == '4' || $kaiguans['pages']['quantie_zhaopin'] == '5' || $kaiguans['pages']['quantie_zhaopin'] == '0'}
	
	<a id="d_zhaopinzu" class="d-kuan-70 d-wenzi-juzhong" onclick="javascript:d_row_zhaopinzu();">
		<i class="fa fa-users"></i>
		<div>招聘帖</div>
	</a>
	{/if}
	{if $kaiguans['pages']['quantie_qiuzhi'] == '1'}
	
	{elseif $member.is_admin || $quanzhukaiguans || $kaiguans['pages']['quantie_qiuzhi'] == '4' || $kaiguans['pages']['quantie_qiuzhi'] == '5' || $kaiguans['pages']['quantie_qiuzhi'] == '0'}
	
	<a id="d_qiuzhizu" class="d-kuan-70 d-wenzi-juzhong" onclick="javascript:d_row_qiuzhizu();">
		<i class="fa fa-mortar-board"></i>
		<div>求职帖</div>
	</a>
	{/if}
	{if dr_is_app('caiji')}
		{if $kaiguans['pages']['quantie_caiji'] == '1'}
		
		{elseif $member.is_admin || $quanzhukaiguans || $kaiguans['pages']['quantie_caiji'] == '4' || $kaiguans['pages']['quantie_caiji'] == '5' || $kaiguans['pages']['quantie_caiji'] == '0'}
		
		<a id="d_caijizu" class="d-kuan-70 d-wenzi-juzhong" onclick="javascript:d_row_caijizu();">
			<i class="fa fa-clipboard"></i>
			<div>微采</div>
		</a>
		{/if}
	{/if}
	{if dr_is_app('chuangyejin')}
	{php $data = \Phpcmf\Service::M()->table('1_quan_form_chuangyejin_shezhi')->where('dirname', 'chuangyejin')->getRow();}
	{php $data['setting'] = dr_string2array($data['setting']);}
	
	{php $mingcheng = $data['setting']['pages']['chuangyejin_name'];}
	<a id="d_chuangyejin" class="d-kuan-70 d-wenzi-juzhong" onclick="javascript:d_row_cyjz();">
		<i class="fa fa-diamond"></i>
		<div>{$mingcheng}</div>
	</a>
	{/if}
	
	
</div>
{/if}
{/if}
{/if}
<style>
	#dr_row_fufeizu {
		/*display: none;*/
	}
	.d_row_tupianzu{
		display: none;
	}
	.d_row_mpsanzu{
		display: none;
	}
	.d_row_yuyinzu{
		display: none;
	}
	.d_row_shipinzu{
		display: none;
	}
	.d_row_toupiaozu{
		display: none;
	}
	.d_row_fufeizu {
		display: none;
	}
	.d_row_xiazaizu{
		display: none;
	}
	.d_row_pkzu{
		display: none;
	}
	.d_row_tupianzu{
		display: none;
	}
	.d_row_huodongzu{
		display: none;
	}
	.d_row_chuzuzu{
		display: none;
	}
	.d_row_qiuzuzu{
		display: none;
	}
	.d_row_zhaopinzu{
		display: none;
	}
	.d_row_qiuzhizu{
		display: none;
	}
	.d_row_wendazu{
		display: none;
	}
	.d_row_shangpinzu{
		display: none;
	}
	.d_row_bisaizu{
		display: none;
	}
	.d_row_caijizu{
		display: none;
	}
	.d_row_cyjz {
		display: none;
	}
	/*.d_chuangyejin{
		display: none;
	}*/
	.guanlizu {
	    margin: 0 0px!important;
	    font-size: 13px;
	    position: fixed;
	    left: 0;
	    right: 0;
	    z-index: 1000;
	    bottom: 70px;
		background-color: #e3e6e7 !important;
		padding: 15px !important;
	}
	/*付费*/
	.d_row_fufeizu {
		margin: 0 0px!important;
		font-size: 13px;
		position: fixed;
		/*height: 100%;*/
		left: 0;
		right: 0;
		z-index: 1000;
		bottom: 130px;
		background-color: #d3d3d4 !important;
		padding: 15px !important;
	}
	.d_gaodu_fufeizu {
		border-radius: 10px;
		padding-top: 20px;
		padding-left: 10px;
		max-height: 600px; /*设置最大的高度*/
		overflow:auto; /*超出这个最大高度的数据，会被隐藏起来，上下滑动*/
		overflow-x:hidden; /*隐藏x轴滚动条*/
		background-color: #fefeff !important;
	}
	/*mp3*/
	.d_row_mpsanzu {
		margin: 0 0px!important;
		font-size: 13px;
		position: fixed;
		/*height: 100%;*/
		left: 0;
		right: 0;
		z-index: 1000;
		bottom: 130px;
		background-color: #d3d3d4 !important;
		padding: 15px !important;
	}
	.d_gaodu_mpsanzu {
		border-radius: 10px;
		padding-top: 20px;
		padding-left: 10px;
		max-height: 600px; /*设置最大的高度*/
		overflow:auto; /*超出这个最大高度的数据，会被隐藏起来，上下滑动*/
		overflow-x:hidden; /*隐藏x轴滚动条*/
		background-color: #fefeff !important;
	}
	/*图音频*/
	.d_row_tupianzu {
	
		margin: 0 0px!important;
		font-size: 13px;
		position: fixed;
		/*height: 100%;*/
		left: 0;
		right: 0;
		z-index: 1000;
		bottom: 130px;
		background-color: #d3d3d4 !important;
		padding: 15px !important;
	}
	.d_gaodu_tupianzu {
		border-radius: 10px;
		padding-top: 20px;
		padding-left: 10px;
		max-height: 600px; /*设置最大的高度*/
		overflow:auto; /*超出这个最大高度的数据，会被隐藏起来，上下滑动*/
		overflow-x:hidden; /*隐藏x轴滚动条*/
		background-color: #fefeff !important;
	}
	/*语音*/
	.d_row_yuyinzu {
		margin: 0 0px!important;
		font-size: 13px;
		position: fixed;
		/*height: 100%;*/
		left: 0;
		right: 0;
		z-index: 1000;
		bottom: 130px;
		background-color: #d3d3d4 !important;
		padding: 15px !important;
	}
	.d_gaodu_yuyinzu {
		border-radius: 10px;
		padding-top: 20px;
		padding-left: 10px;
		max-height: 600px; /*设置最大的高度*/
		overflow:auto; /*超出这个最大高度的数据，会被隐藏起来，上下滑动*/
		overflow-x:hidden; /*隐藏x轴滚动条*/
		background-color: #fefeff !important;
	}
	/*shipin*/
	.d_row_shipinzu {
		margin: 0 0px!important;
		font-size: 13px;
		position: fixed;
		/*height: 100%;*/
		left: 0;
		right: 0;
		z-index: 1000;
		bottom: 130px;
		background-color: #d3d3d4 !important;
		padding: 15px !important;
	}
	.d_gaodu_shipinzu {
		border-radius: 10px;
		padding-top: 20px;
		padding-left: 10px;
		max-height: 600px; /*设置最大的高度*/
		overflow:auto; /*超出这个最大高度的数据，会被隐藏起来，上下滑动*/
		overflow-x:hidden; /*隐藏x轴滚动条*/
		background-color: #fefeff !important;
	}
	/*投票*/
	.d_row_toupiaozu {
		margin: 0 0px!important;
		font-size: 13px;
		position: fixed;
		/*height: 100%;*/
		left: 0;
		right: 0;
		z-index: 1000;
		bottom: 130px;
		background-color: #d3d3d4 !important;
		padding: 15px !important;
	}
	.d_gaodu_toupiaozu {
		border-radius: 10px;
		padding-top: 20px;
		padding-left: 10px;
		max-height: 600px; /*设置最大的高度*/
		overflow:auto; /*超出这个最大高度的数据，会被隐藏起来，上下滑动*/
		overflow-x:hidden; /*隐藏x轴滚动条*/
		background-color: #fefeff !important;
	}
	/*下载*/
	.d_row_xiazaizu {

		margin: 0 0px!important;
		font-size: 13px;
		position: fixed;
		/*height: 100%;*/
		left: 0;
		right: 0;
		z-index: 1000;
		bottom: 130px;
		background-color: #d3d3d4 !important;
		padding: 15px !important;
	}
	.d_gaodu_xiazaizu {
		border-radius: 10px;
		padding-top: 20px;
		padding-left: 10px;
		max-height: 600px; /*设置最大的高度*/
		overflow:auto; /*超出这个最大高度的数据，会被隐藏起来，上下滑动*/
		overflow-x:hidden; /*隐藏x轴滚动条*/
		background-color: #fefeff !important;
	}
	/*比赛*/
	.d_row_bisaizu {
	
		margin: 0 0px!important;
		font-size: 13px;
		position: fixed;
		/*height: 100%;*/
		left: 0;
		right: 0;
		z-index: 1000;
		bottom: 130px;
		background-color: #d3d3d4 !important;
		padding: 15px !important;
	}
	.d_gaodu_bisaizu {
		border-radius: 10px;
		padding-top: 20px;
		padding-left: 10px;
		max-height: 600px; /*设置最大的高度*/
		overflow:auto; /*超出这个最大高度的数据，会被隐藏起来，上下滑动*/
		overflow-x:hidden; /*隐藏x轴滚动条*/
		background-color: #fefeff !important;
	}
	/*pk*/
	.d_row_pkzu {
	
		margin: 0 0px!important;
		font-size: 13px;
		position: fixed;
		/*height: 100%;*/
		left: 0;
		right: 0;
		z-index: 1000;
		bottom: 130px;
		background-color: #d3d3d4 !important;
		padding: 15px !important;
	}
	.d_gaodu_pkzu {
		border-radius: 10px;
		padding-top: 20px;
		padding-left: 10px;
		max-height: 600px; /*设置最大的高度*/
		overflow:auto; /*超出这个最大高度的数据，会被隐藏起来，上下滑动*/
		overflow-x:hidden; /*隐藏x轴滚动条*/
		background-color: #fefeff !important;
	}
	/*活动*/
	.d_row_huodongzu {
	
		margin: 0 0px!important;
		font-size: 13px;
		position: fixed;
		/*height: 100%;*/
		left: 0;
		right: 0;
		z-index: 1000;
		bottom: 130px;
		background-color: #d3d3d4 !important;
		padding: 15px !important;
	}
	.d_gaodu_huodongzu {
		border-radius: 10px;
		padding-top: 20px;
		padding-left: 10px;
		max-height: 600px; /*设置最大的高度*/
		overflow:auto; /*超出这个最大高度的数据，会被隐藏起来，上下滑动*/
		overflow-x:hidden; /*隐藏x轴滚动条*/
		background-color: #fefeff !important;
	}
	/*出租*/
	.d_row_chuzuzu {
	
		margin: 0 0px!important;
		font-size: 13px;
		position: fixed;
		/*height: 100%;*/
		left: 0;
		right: 0;
		z-index: 1000;
		bottom: 130px;
		background-color: #d3d3d4 !important;
		padding: 15px !important;
	}
	.d_gaodu_chuzuzu {
		border-radius: 10px;
		padding-top: 20px;
		padding-left: 10px;
		max-height: 600px; /*设置最大的高度*/
		overflow:auto; /*超出这个最大高度的数据，会被隐藏起来，上下滑动*/
		overflow-x:hidden; /*隐藏x轴滚动条*/
		background-color: #fefeff !important;
	}
	/*求租*/
	.d_row_qiuzuzu {
	
		margin: 0 0px!important;
		font-size: 13px;
		position: fixed;
		/*height: 100%;*/
		left: 0;
		right: 0;
		z-index: 1000;
		bottom: 130px;
		background-color: #d3d3d4 !important;
		padding: 15px !important;
	}
	
	.d_gaodu_qiuzuzu {
		border-radius: 10px;
		padding-top: 20px;
		padding-left: 10px;
		max-height: 600px; /*设置最大的高度*/
		overflow:auto; /*超出这个最大高度的数据，会被隐藏起来，上下滑动*/
		overflow-x:hidden; /*隐藏x轴滚动条*/
		background-color: #fefeff !important;
	}
	/*采集*/
	.d_row_caijizu {
	
		margin: 0 0px!important;
		font-size: 13px;
		position: fixed;
		/*height: 100%;*/
		left: 0;
		right: 0;
		z-index: 1000;
		bottom: 130px;
		background-color: #d3d3d4 !important;
		padding: 15px !important;
	}
	/*采集*/
	
	.d_gaodu_caijizu {
		border-radius: 10px;
		padding-top: 20px;
		padding-left: 10px;
		max-height: 600px; /*设置最大的高度*/
		overflow:auto; /*超出这个最大高度的数据，会被隐藏起来，上下滑动*/
		overflow-x:hidden; /*隐藏x轴滚动条*/
		background-color: #fefeff !important;
	}
	/*创意金*/
	.d_row_cyjz {
		margin: 0 0px!important;
		font-size: 13px;
		position: fixed;
		/*height: 100%;*/
		left: 0;
		right: 0;
		z-index: 1000;
		bottom: 130px;
		background-color: #d3d3d4 !important;
		padding: 15px !important;
	}
	.d_gaodu_cyjz {
		border-radius: 10px;
		padding-top: 20px;
		padding-left: 10px;
		max-height: 600px; /*设置最大的高度*/
		overflow:auto; /*超出这个最大高度的数据，会被隐藏起来，上下滑动*/
		overflow-x:hidden; /*隐藏x轴滚动条*/
		background-color: #fefeff !important;
	}
	/*招聘*/
	.d_row_zhaopinzu {
	
		margin: 0 0px!important;
		font-size: 13px;
		position: fixed;
		/*height: 100%;*/
		left: 0;
		right: 0;
		z-index: 1000;
		bottom: 130px;
		background-color: #d3d3d4 !important;
		padding: 15px !important;
	}
	.d_gaodu_zhaopinzu {
		border-radius: 10px;
		padding-top: 20px;
		padding-left: 10px;
		max-height: 600px; /*设置最大的高度*/
		overflow:auto; /*超出这个最大高度的数据，会被隐藏起来，上下滑动*/
		overflow-x:hidden; /*隐藏x轴滚动条*/
		background-color: #fefeff !important;
	}
	/*招聘*/
	.d_row_qiuzhizu {
	
		margin: 0 0px!important;
		font-size: 13px;
		position: fixed;
		/*height: 100%;*/
		left: 0;
		right: 0;
		z-index: 1000;
		bottom: 130px;
		background-color: #d3d3d4 !important;
		padding: 15px !important;
	}
	.d_gaodu_qiuzhizu {
		border-radius: 10px;
		padding-top: 20px;
		padding-left: 10px;
		max-height: 600px; /*设置最大的高度*/
		overflow:auto; /*超出这个最大高度的数据，会被隐藏起来，上下滑动*/
		overflow-x:hidden; /*隐藏x轴滚动条*/
		background-color: #fefeff !important;
	}
	/*问答*/
	.d_row_wendazu {
	
		margin: 0 0px!important;
		font-size: 13px;
		position: fixed;
		/*height: 100%;*/
		left: 0;
		right: 0;
		z-index: 1000;
		bottom: 130px;
		background-color: #d3d3d4 !important;
		padding: 15px !important;
	}
	.d_gaodu_wendazu {
		border-radius: 10px;
		padding-top: 20px;
		padding-left: 10px;
		max-height: 600px; /*设置最大的高度*/
		overflow:auto; /*超出这个最大高度的数据，会被隐藏起来，上下滑动*/
		overflow-x:hidden; /*隐藏x轴滚动条*/
		background-color: #fefeff !important;
	}
	/*商品*/
	.d_row_shangpinzu {
	
		margin: 0 0px!important;
		font-size: 13px;
		position: fixed;
		/*height: 100%;*/
		left: 0;
		right: 0;
		z-index: 1000;
		bottom: 130px;
		background-color: #d3d3d4 !important;
		padding: 15px !important;
	}
	.d_gaodu_shangpinzu {
		border-radius: 10px;
		padding-top: 20px;
		padding-left: 10px;
		max-height: 600px; /*设置最大的高度*/
		overflow:auto; /*超出这个最大高度的数据，会被隐藏起来，上下滑动*/
		overflow-x:hidden; /*隐藏x轴滚动条*/
		background-color: #fefeff !important;
	}
	
	
</style>
<script>
function d_row_fufeizu() {
	if ($('.d_row_fufeizu').is(':hidden')) {
		$('.d_row_fufeizu').show();
		$('#d_fufeizu').css('color','#ff5500');
		//
		/*$('.d_row_xiazaizu').hide();
		$('#d_xiazaizu').css('color','#000000');
		$('.d_row_pkzu').hide();
		$('#d_pkzu').css('color','#000000');
		$('.d_row_huodongzu').hide();
		$('#d_huodongzu').css('color','#000000');
		$('.d_row_chuzuzu').hide();
		$('#d_chuzuzu').css('color','#000000');
		$('.d_row_qiuzuzu').hide();
		$('#d_qiuzuzu').css('color','#000000');*/
		//
	} else {
		$('.d_row_fufeizu').hide();
		$('#d_fufeizu').css('color','#000000');
		
	}
}
function d_row_xiazaizu() {
	if ($('.d_row_xiazaizu').is(':hidden')) {
		$('.d_row_xiazaizu').show();
		$('#d_xiazaizu').css('color','#ff5500');
	} else {
		$('.d_row_xiazaizu').hide();
		$('#d_xiazaizu').css('color','#000000');
	}
}
//pk
function d_row_pkzu() {
	if ($('.d_row_pkzu').is(':hidden')) {
		$('.d_row_pkzu').show();
		$('#d_pkzu').css('color','#ff5500');
	} else {
		$('.d_row_pkzu').hide();
		$('#d_pkzu').css('color','#000000');
	}
}
//mp3
function d_row_mpsanzu() {
	if ($('.d_row_mpsanzu').is(':hidden')) {
		$('.d_row_mpsanzu').show();
		$('#d_mpsanzu').css('color','#ff5500');
	} else {
		$('.d_row_mpsanzu').hide();
		$('#d_mpsanzu').css('color','#000000');
	}
}
//视频
function d_row_shipinzu() {
	if ($('.d_row_shipinzu').is(':hidden')) {
		$('.d_row_shipinzu').show();
		$('#d_shipinzu').css('color','#ff5500');
	} else {
		$('.d_row_shipinzu').hide();
		$('#d_shipinzu').css('color','#000000');
	}
}
//语音
function d_row_yuyinzu() {
	if ($('.d_row_yuyinzu').is(':hidden')) {
		$('.d_row_yuyinzu').show();
		$('#d_yuyinzu').css('color','#ff5500');
	} else {
		$('.d_row_yuyinzu').hide();
		$('#d_yuyinzu').css('color','#000000');
	}
}
//投票
function d_row_toupiaozu() {
	if ($('.d_row_toupiaozu').is(':hidden')) {
		$('.d_row_toupiaozu').show();
		$('#d_toupiaozu').css('color','#ff5500');
	} else {
		$('.d_row_toupiaozu').hide();
		$('#d_toupiaozu').css('color','#000000');
	}
}
//活动
function d_row_huodongzu() {
	if ($('.d_row_huodongzu').is(':hidden')) {
		$('.d_row_huodongzu').show();
		$('#d_huodongzu').css('color','#ff5500');
	} else {
		$('.d_row_huodongzu').hide();
		$('#d_huodongzu').css('color','#000000');
	}
}
//出租
function d_row_chuzuzu() {
	if ($('.d_row_chuzuzu').is(':hidden')) {
		$('.d_row_chuzuzu').show();
		$('#d_chuzuzu').css('color','#ff5500');
	} else {
		$('.d_row_chuzuzu').hide();
		$('#d_chuzuzu').css('color','#000000');
	}
}
//求租
function d_row_qiuzuzu() {
	if ($('.d_row_qiuzuzu').is(':hidden')) {
		$('.d_row_qiuzuzu').show();
		$('#d_qiuzuzu').css('color','#ff5500');
	} else {
		$('.d_row_qiuzuzu').hide();
		$('#d_qiuzuzu').css('color','#000000');
	}
}
//招聘
function d_row_zhaopinzu() {
	if ($('.d_row_zhaopinzu').is(':hidden')) {
		$('.d_row_zhaopinzu').show();
		$('#d_zhaopinzu').css('color','#ff5500');
	} else {
		$('.d_row_zhaopinzu').hide();
		$('#d_zhaopinzu').css('color','#000000');
	}
}
//求职
function d_row_qiuzhizu() {
	if ($('.d_row_qiuzhizu').is(':hidden')) {
		$('.d_row_qiuzhizu').show();
		$('#d_qiuzhizu').css('color','#ff5500');
	} else {
		$('.d_row_qiuzhizu').hide();
		$('#d_qiuzhizu').css('color','#000000');
	}
}
//采集
function d_row_caijizu() {
	if ($('.d_row_caijizu').is(':hidden')) {
		$('.d_row_caijizu').show();
		$('#d_caijizu').css('color','#ff5500');
	} else {
		$('.d_row_caijizu').hide();
		$('#d_caijizu').css('color','#000000');
	}
}
//问答
function d_row_wendazu() {
	if ($('.d_row_wendazu').is(':hidden')) {
		$('.d_row_wendazu').show();
		$('#d_wendazu').css('color','#ff5500');
	} else {
		$('.d_row_wendazu').hide();
		$('#d_wendazu').css('color','#000000');
	}
}
//商品
function d_row_shangpinzu() {
	if ($('.d_row_shangpinzu').is(':hidden')) {
		$('.d_row_shangpinzu').show();
		$('#d_shangpinzu').css('color','#ff5500');
	} else {
		$('.d_row_shangpinzu').hide();
		$('#d_shangpinzu').css('color','#000000');
	}
}
//比赛
function d_row_bisaizu() {
	if ($('.d_row_bisaizu').is(':hidden')) {
		$('.d_row_bisaizu').show();
		$('#d_bisaizu').css('color','#ff5500');
	} else {
		$('.d_row_bisaizu').hide();
		$('#d_bisaizu').css('color','#000000');
	}
}

//图音频tupianzu
function d_row_tupianzu() {
	if ($('.d_row_tupianzu').is(':hidden')) {
		$('.d_row_tupianzu').show();
		$('#d_tupianzu').css('color','#ff5500');
	} else {
		$('.d_row_tupianzu').hide();
		$('#d_tupianzu').css('color','#000000');
	}
}
//创业金
function d_row_cyjz() {
	if ($('.d_row_cyjz').is(':hidden')) {
		$('.d_row_cyjz').show();
		$('#d_chuangyejin').css('color','#ff5500');
	} else {
		$('.d_row_cyjz').hide();
		$('#d_chuangyejin').css('color','#000000');
	}
}
//采集微信 

// 获取输入框的值

/*$(document).ready(function() {
	
	$('#dr_wxwzlj').bind('input propertychange change', function() {
	  var val = $(this).val();
	  console.log("输入框内的数值：" + val);
	  //$('#d_weixin').html(val);
	});
	
});*/
function dr_post_weixin(zhi,laiyuan) {
	// 获取输入框的值
	var inputValue = $('#dr_wxwzlj').val();
	
    // 选择 iframe
    var iframe = $('#ueditor_0')[0];
	
    // 获取 iframe 的 contentWindow 对象
    var contentWindow = iframe.contentWindow;
    // 通过 contentWindow 对象访问 iframe 中的 document
    var iframeDocument = contentWindow.document;
	// 选择 iframe
	var iframecaiji = $('#ueditor_2')[0];
	// 获取 iframe 的 contentWindow 对象
	var contentWindowcaiji = iframecaiji.contentWindow;
	// 通过 contentWindow 对象访问 iframe 中的 document
	var iframeDocumentcaiji = contentWindowcaiji.document;
    $.ajax({
    	    type: "GET",
    	    url: "/index.php?s=caiji&c=home&m=index&url="+inputValue+"&leixing="+zhi,
    	    dataType: "json",
    	    success: function (res) {
    	        /*layer.msg(res.msg, {
    	            time: 500
    	        }, function() {
    	            location.reload();
    	        });*/
				//dr_tips(res.code, res.msg);
				$('#d_weixin').html(inputValue);
				$('#dr_title').val(res.data.title);
				$('#dr_neirong').val(inputValue);
				
    			$('#d-qiandao-zhi').html(res.data.zhi);
    			$('#d-qiandao-zhi2').html(res.data.zhi);
    			$('#d-qiandao-jingyan').html(res.data.jingyan);
    			$('#d-qiandao-tian').html(res.data.tian);
    			$('.d-qiandao-tanchu').show();
				$(iframeDocument).find('body').html(res.data.content+"来源"+laiyuan+"："+res.data.mingcheng+"<br>网址："+res.data.url);
				$(iframeDocumentcaiji).find('body').html(res.data.content+"来源"+laiyuan+"："+res.data.mingcheng+"<br>网址："+res.data.url);
				layer.msg(res.msg,{time:500});
    	    },
    	    error: function(e) {}
    	});
	// 选择 iframe
	//var iframe = $('#ueditor_0')[0];
	// 获取 iframe 的 contentWindow 对象
	//var contentWindow = iframe.contentWindow;
	// 通过 contentWindow 对象访问 iframe 中的 document
	//var iframeDocument = contentWindow.document;
	//console.log("输入框内的数值：" + iframeDocument);
	// 在 iframe 中的 HTML 文档中查找元素并改变其值

	
}
</script>
{template "footer.html"}